<div class="main">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">工作台>船机设备>设备信息>
      <span class="fs-theme-color">基本信息</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content">
    <form class="base-info" name="device" style="padding: 0;">
      <div class="container-header fs-16">
        <span>设备详情表</span>
      </div>
      <div class="info-item fs0 info-item-other">
        <div class="base-info-fl" avatar-uploader
          data-url="/api/v1/common/uploadFile?folderName=device" ng-model="vm.view.avatarFile">
          <img ng-src="{{vm.$getAvatarSrc()}}" alt="">
        </div>
        <div class="base-info-fr">
          <div class="info-item-header fs-16">
            <div class="pa-form-control">
              <label class="pa-form-control-label"><b>*</b>设备名称：</label>
              <!-- <select class="form-control-input fs-16"
                ng-options="deviceCategory.code as deviceCategory.name for deviceCategory
                in deviceCategoryParams"
                ng-model="vm.deviceDetailInfo.deviceTypeCode">
              </select> -->
              <span class="pa-form-control-span pa-form-header-span">{{vm.deviceDetailInfo.deviceName}}</span>
            </div>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>规格型号</label>
            <input type="text" class="form-control-input fs-16"
              ng-model="vm.deviceDetailInfo.model">
<!--             <span class="pa-form-control-span">{{vm.deviceDetailInfo.model}}</span>
 -->          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>使用部位</label>
            <!-- <select class="form-control-input fs-16"
              ng-options="deviceUsedLocation.code as deviceUsedLocation.name for deviceUsedLocation
              in deviceUsedLocationParams"
              ng-model="vm.deviceDetailInfo.useLocationCode">
            </select> -->
            <span class="pa-form-control-span">{{vm.deviceDetailInfo.useLocationName}}</span>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>设备分类</label>
            <!-- <select class="form-control-select fs-16"
              ng-options="device.value as device.name for device in deviceTypeParams"
              ng-model="vm.deviceDetailInfo.catgegroy">
              <option value=""></option>
            </select> -->
            <span class="pa-form-control-span">
              {{vm.getDeviceCategory(vm.deviceDetailInfo.catgegroy)}}
            </span>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>是否租赁</label>
            <!-- <select name="" id="" class="form-control-select fs-16"
              ng-model="vm.deviceDetailInfo.isRent">
              <option value="">请选择</option>
              <option value="1">否</option>
              <option value="2">是</option>
            </select> -->
            <span class="pa-form-control-span">
              {{vm.deviceDetailInfo.isRent == 1 ? '否' : vm.deviceDetailInfo.isRent == 2 ? '是' : ''}}
            </span>
          </div>
        </div>
      </div>
      <div class="info-item info-item-general clearfix">
        <div class="info-item-header fs-14">
          <label class="info-item-header-label">基本信息</label>
        </div>
        <div class="pa-form-control fs-14">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>进场时间：</label>
          <span class="pa-form-control-span fs-14">{{vm.deviceDetailInfo.inTime | date:"yyyy-MM-dd"}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>操作责任人：</label>
            <!-- 多个人以逗号分隔operatorNames,operatorIds -->
          <multi-select ms-model="vm.selectedWorkers"></multi-select>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">检测（验收）：</label>
          <select name="" id="" class="form-control-select fs-14"
            style="width: 185px;"
            ng-model="vm.deviceDetailInfo.acceptStatus">
            <option value="">请选择</option>
            <option value="1">合格</option>
            <option value="2">不合格</option>
          </select>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>出场时间：</label>
          <span class="pa-form-control-span fs-14">{{vm.deviceDetailInfo.outTime | date:"yyyy-MM-dd"}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">备注：</label>
          <input type="text" class="form-control-input form-control-note fs-14"
            ng-model="vm.deviceDetailInfo.remark">
        </div>
      </div>
      <div class="info-item">
        <div class="info-item-header fs-14">
          <label class="info-item-header-label">附件信息</label>
          <div class="pa-operate-add fr fs-14 fs-theme-color">
            <a class="pa-btn-a"
              attachment-uploader
              data-url="/api/v1/common/uploadFile?folderName=device"
              data-target=".file-list"
              ng-model="vm.view.attachmentFiles">
              <i class="fa fa-plus"></i>
              <span>新增</span>
            </a>
          </div>
        </div>
        <div class="file-list">
        </div>
      </div>
      <div class="pa-btn-area">
        <button class="pa-btn pa-btn-longer" type="button" ng-click="vm.$saveData(device)">保存</button>
        <button class="pa-btn pa-btn-longer reset-btn" type="button" ui-sref="deviceInfo">取消</button>
      </div>
    </form>
  </div>
</div>